/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package todotask.renderer;

import java.awt.Component;
import javax.swing.JTable;
import javax.swing.table.TableCellRenderer;
import todotask.entities.Task;
import todotask.view.TaskInfo;

/**
 *
 * @author dakota
 */
public class TableRenderer extends TaskInfo implements TableCellRenderer {

    @Override
    public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
        Task task = new Task((Task) value);
        TaskInfo tinfo = new TaskInfo(task);
        return tinfo;
    }
}
